cmake_minimum_required(VERSION 3.6)
project(c0compiler)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

set(SOURCE_FILES
    main.cpp helper/Error.cpp helper/Error.h front/Token.cpp front/Token.h helper/Utils.h front/Lexer.h front/ASTNode.cpp front/ASTNode.h front/Parser.h front/SymbolTable.h front/ASTVisitor.h front/Semantic.h helper/Log.h back/ASTtoIRInterpreter.h back/IR.h back/IR.cpp back/Optimizer.h back/MIPsIns.h front/ASTTransformer.h back/IRVisitor.h back/MTS.h back/SimpleIRVisitor.h back/Function.h back/BasicBlock.h Config.cpp back/DefUseChain.cpp back/DefUseChain.h back/FindDefinitionIRVisitor.h back/AbstractIREvaluator.h back/Graph.cpp back/Graph.h back/OptimizedMipsGen.h)

add_executable(c0compiler ${SOURCE_FILES})